<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;

class Resume extends Model{
    /* 表名 */
    protected $table = "re_resume";
    /* 主键ID */
    protected $primaryKey = "resume_id";
    /* 关闭时间戳 */
    public $timestamps=false;
    /**
     * 查询当前用户简历
     */
    public function sel($uid){
        $sql="select * from re_resume";
    }

    /**
     * 一对一关系：简历对用户
     */
    public function belongsToUser(){
        return $this->belongsTo('App\Model\ReUser','resume_user_id','id');
    }
}
